package com.netease.spring.postprocessor;

import org.apache.log4j.Logger;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

public class BeanCounter implements BeanFactoryPostProcessor {

	private Logger LOGGER = Logger.getLogger(BeanCounter.class);
	
	@Override
	public void postProcessBeanFactory(
			ConfigurableListableBeanFactory beanFactory) throws BeansException {
		LOGGER.info("dylan->bean count: " + beanFactory.getBeanDefinitionCount());
	}

}
